namespace JGSY.CMS.LowCode.Platform.Application.DTOs.Monitoring;

/// <summary>
/// 性能指标数据传输对象
/// </summary>
public class PerformanceMetricDto
{
    /// <summary>
    /// 会话ID
    /// </summary>
    public string SessionId { get; set; } = string.Empty;

    /// <summary>
    /// 用户ID
    /// </summary>
    public string? UserId { get; set; }

    /// <summary>
    /// 指标名称
    /// </summary>
    public string MetricName { get; set; } = string.Empty;

    /// <summary>
    /// 指标数值
    /// </summary>
    public decimal MetricValue { get; set; }

    /// <summary>
    /// 指标评级
    /// </summary>
    public string? MetricRating { get; set; }

    /// <summary>
    /// 页面URL
    /// </summary>
    public string PageUrl { get; set; } = string.Empty;

    /// <summary>
    /// 用户代理
    /// </summary>
    public string? UserAgent { get; set; }

    /// <summary>
    /// 浏览器名称
    /// </summary>
    public string? BrowserName { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    public string? DeviceType { get; set; }

    /// <summary>
    /// 时间戳
    /// </summary>
    public long Timestamp { get; set; }
}
